Skip to content

dgb: SSOT for lookbehind chain-walk window clamp (fenced KAT) - #423

Merged
frstrtr merged 1 commit into
masterfrom
dgb/chain-walk-window-ssot
Jun 24, 2026
Merged

dgb: SSOT for lookbehind chain-walk window clamp (fenced KAT)#423
frstrtr merged 1 commit into
masterfrom
dgb/chain-walk-window-ssot

Conversation

@frstrtr

@frstrtr frstrtr commented Jun 24, 2026

Copy link
Copy Markdown
Owner

FENCED Phase-B pillar (integrator-approved, parallel/non-blocking on #414/#416).

Lifts the open-coded actual = min(lookbehind, height) clamp + (actual<=0) empty-walk guard -- duplicated across four share_tracker.hpp accessors (get_average_stale_prop / get_stale_counts / get_desired_version_counts / get_desired_version_weights) -- into coin/chain_walk_window.hpp (chain_walk_window_count / chain_walk_window_active).

Oracle: p2pool-dgb-scrypt forest.py Tracker.get_chain (walk at most n parents, stop at chain end) under the main.py call-site min(lookbehind, height) clamp. get_desired_version_weights rides this window into the check()-phase 60% work-weighted v36 switch gate, so a silent drift would re-scope the accept gate.

Fence: header-only (<algorithm>/<cstdint>); share_tracker.hpp NOT rewired -- byte-identity delegation is the follow-on. KAT 5/5 incl a non-circular dense-matrix proof that the SSOT equals the verbatim inline clamp+guard. Wired into the dir CMakeLists.txt and both build.yml --target allowlists. GPG-signed.

No self-merge -- integrator lands on CLEAN rollup.

@frstrtr
frstrtr force-pushed the dgb/chain-walk-window-ssot branch 3 times, most recently from 1b24c2e to cbeaddf Compare June 24, 2026 19:17
Lift the open-coded actual = min(lookbehind, height) clamp and the
(actual<=0) empty-walk guard -- duplicated across share_tracker.hpp
get_average_stale_prop / get_stale_counts / get_desired_version_counts /
get_desired_version_weights -- into coin/chain_walk_window.hpp as
chain_walk_window_count() / chain_walk_window_active().

Oracle: p2pool-dgb-scrypt forest.py Tracker.get_chain (walk at most n
parents, stop at chain end) under the main.py call-site min(lookbehind,
height) clamp. get_desired_version_weights rides this window into the
check()-phase 60% work-weighted v36 switch gate.

FENCED, additive: header-only (<algorithm>/<cstdint>), share_tracker.hpp
NOT rewired -- byte-identity delegation is the follow-on. KAT 5/5 incl a
non-circular dense-matrix proof that the SSOT equals the verbatim inline
clamp+guard. Wired into the dir CMakeLists.txt and both build.yml
--target allowlists.
@frstrtr
frstrtr force-pushed the dgb/chain-walk-window-ssot branch from cbeaddf to 83d5821 Compare June 24, 2026 20:38
@frstrtr
frstrtr merged commit 20f5776 into master Jun 24, 2026
33 checks passed
frstrtr added a commit that referenced this pull request Jun 26, 2026
dgb: delegate diagnostic lookbehind clamps onto chain_walk_window SSOT (#423 follow-on)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant